namespace Maple.Branch.Base
{
    using Consts;
    using Volo.Abp.Localization;
    using Volo.Abp.Settings;

    public class BranchLocalizationSettingProvider : SettingDefinitionProvider
    {
        public override void Define(ISettingDefinitionContext context)
        {
            var languageSetting = context.GetOrNull(LocalizationSettingNames.DefaultLanguage);

            if (languageSetting != null)
            {
                languageSetting.DefaultValue = BranchConsts.DefaultCultureName;
            }
        }
    }
}
